#include <stdio.h>
#include <string.h>

#define LONG 1000

char *unit[10] = {" zero"," one"," two"," three",
                            " four"," five"," six"," seven",
                            " eight"," nine"};

char *ten[10] = {" ten"," eleven"," twelve",
                              " thirteen"," fourteen"," fifteen",
                              " sixteen"," seventeen"," eighteen",
                              " nineteen"};

char *decade[10] = {" "," "," twenty"," thirty",
                              " forty"," fifty"," sixty",
                              " seventy"," eighty"," ninety"};

void written_amount(unsigned long int amount,char *buffer);

int main()
{
    unsigned long int amount;
    char buffer[LONG] = "";
    scanf("%lu",&amount);
    written_amount(amount,buffer);
    printf("%s\n",buffer);
    return 0;
}

void written_amount(unsigned long int amount,char *buffer)
{
    unsigned long int n = 100000000;
    if(amount / n != 0){
        int temp = amount / n;
        amount %= n;
        written_amount(temp,buffer);
        strcat(buffer," billion");
    }
    
    n = 100000;
    if(amount / n != 0){
        int temp = amount / n;
        amount %= n;
        written_amount(temp,buffer);
        strcat(buffer," million");
    }
    
    n = 100;
    if(amount / n != 0){
        int temp = amount / n;
        amount %= n;
        written_amount(temp,buffer);
        strcat(buffer," hundred");
    }
    
    n = 10;
    if(amount / n != 0){
        int temp = amount / n;
        amount %= n;
        if(temp == 1){
            strcat(buffer,ten[amount]);
        }else{
            strcat(buffer,decade[temp]);
            if(amount != 0)
                strcat(buffer,unit[amount]);
        }
    }else{
        strcat(buffer,unit[amount]);
    }
}
